package feedback.web.bean.student;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;

import org.springframework.beans.factory.annotation.Autowired;

import feedback.core.models.entities.Student;
import feedback.web.bean.admin.LoginBean;

@ManagedBean(name = "sdb")
@SessionScoped
public class StudentBean {

	@Autowired
	private Student stu;
	@ManagedProperty("#{login}")
	private LoginBean login;

	@PostConstruct
	public void init() {

//		stu = (Student) login.getUserLogin();

	}

	public Student getStu() {
		return stu;
	}

	public void setStu(Student stu) {
		this.stu = stu;
	}

	public LoginBean getLogin() {
		return login;
	}

	public void setLogin(LoginBean login) {
		this.login = login;
	}

}
